<template>
  <img
    alt="Vue logo"
    src="./assets/logo.png"
  >
  <router-view />
  <HelloWorld
    ref="helloWorld"
    msg="Hello Vue 3.0 + TypeScript + Vite"
    :counts="123"
  />
</template>
<script lang="ts">
import { defineComponent, ref, onMounted } from 'vue'
import HelloWorld from './components/HelloWorld.vue'

export default defineComponent({
  name: 'App',
  components: {
    HelloWorld
  },
  setup: () => {
    const helloWorld = ref<InstanceType<typeof HelloWorld> | null>(null)
    onMounted(() => {
      console.log(helloWorld.value)
    })
    return {
      helloWorld
    }
  }
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
